const { spawn } = require('child_process');
let a = `
0,1,0,0,0,0,
0,1,0,0,0,0,
0,1,0,0,0,0,
0,1,0,0,0,0,
0,0,0,0,1,0,
`
a = a.split('\n').filter(e =>e)
const child = spawn('./build/Astar.exe', a);
child.stdout.on('data', data => {
  console.log(`stdout: ${data}`);
});

child.stderr.on('data', data => {
  console.log(`stderr: ${data}`);
});

child.on('close', code => {
  console.log(`close：${code}`);
});